package com.gtw.modules.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品信息
 */
public class TbCommodity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;
    /**
     * 创建时间
     */
    private Date createdate;
    /**
     * 修改时间
     */
    private Date updatedate;
    /**
     * 商品名称
     */
    private String commodityname;
    /**
     * 商品编号
     */
    private String commoditynum;
    /**
     * 分类名称
     */
    private String categoryname;
    /**
     * 分类ID
     */
    private Integer categoryid;
    /**
     * 是否需要支付  1:是 0：否
     */
    private Boolean ispay;
    /**
     * 上传人
     */
    private String upauthor;
    /**
     * 是否新品 1:是 0:否
     */
    private Boolean isnew;
    /**
     * 是否推荐 1:是 0:否
     */
    private Boolean isrecommend;
    /**
     * 是否热门 1:是 0:否
     */
    private Boolean ishot;
    /**
     * 是否删除 1:是 0:否
     */
    private Boolean isdelete;
    /**
     * 普通价格(零售价)
     */
    private Float price;
    /**
     * 会员价
     */
    private Float pricediscounts;
    /**
     * 销量
     */
    private Integer salesnum;
    /**
     * 邮费
     */
    private Float freight;
    /**
     * 规格参数
     */
    private String parameter;
    /**
     * 商品详情
     */
    private String commoditydetails;
    /**
     * 是否明星商品 1:是 0:否
     */
    private Boolean celebrity;
    /**
     * 是否优选商品 1:是 0:否
     */
    private Boolean preferred;
    /**
     * 图片地址
     */
    private String picurl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

    public String getCommodityname() {
        return commodityname;
    }

    public void setCommodityname(String commodityname) {
        this.commodityname = commodityname == null ? null : commodityname.trim();
    }

    public String getCommoditynum() {
        return commoditynum;
    }

    public void setCommoditynum(String commoditynum) {
        this.commoditynum = commoditynum == null ? null : commoditynum.trim();
    }

    public String getCategoryname() {
        return categoryname;
    }

    public void setCategoryname(String categoryname) {
        this.categoryname = categoryname == null ? null : categoryname.trim();
    }

    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public Boolean getIspay() {
        return ispay;
    }

    public void setIspay(Boolean ispay) {
        this.ispay = ispay;
    }

    public String getUpauthor() {
        return upauthor;
    }

    public void setUpauthor(String upauthor) {
        this.upauthor = upauthor == null ? null : upauthor.trim();
    }

    public Boolean getIsnew() {
        return isnew;
    }

    public void setIsnew(Boolean isnew) {
        this.isnew = isnew;
    }

    public Boolean getIsrecommend() {
        return isrecommend;
    }

    public void setIsrecommend(Boolean isrecommend) {
        this.isrecommend = isrecommend;
    }

    public Boolean getIshot() {
        return ishot;
    }

    public void setIshot(Boolean ishot) {
        this.ishot = ishot;
    }

    public Boolean getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Boolean isdelete) {
        this.isdelete = isdelete;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getPricediscounts() {
        return pricediscounts;
    }

    public void setPricediscounts(Float pricediscounts) {
        this.pricediscounts = pricediscounts;
    }

    public Integer getSalesnum() {
        return salesnum;
    }

    public void setSalesnum(Integer salesnum) {
        this.salesnum = salesnum;
    }

    public Float getFreight() {
        return freight;
    }

    public void setFreight(Float freight) {
        this.freight = freight;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter == null ? null : parameter.trim();
    }

    public String getCommoditydetails() {
        return commoditydetails;
    }

    public void setCommoditydetails(String commoditydetails) {
        this.commoditydetails = commoditydetails == null ? null : commoditydetails.trim();
    }

    public Boolean getCelebrity() {
        return celebrity;
    }

    public void setCelebrity(Boolean celebrity) {
        this.celebrity = celebrity;
    }

    public Boolean getPreferred() {
        return preferred;
    }

    public void setPreferred(Boolean preferred) {
        this.preferred = preferred;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl == null ? null : picurl.trim();
    }
}